import request from '@/utils/request.js'

//查询分类表全部类容
export const categroylist = (type) => {
  return request.get("/user/category/list", {
    type: type
  })
}

// 根据分类id查询对应的菜品
export const dishlist = (categoryId) => {

  return request.get(`/user/dish/list`, {
    categoryId: categoryId
  })

}